package com.zhora.entity.ai;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

/**
 * ai文档-片段(ai_library_doc_segment)实体类
 *
 * @author zhehen.lu
 * @since 2025-09-25 11:11:34
 */
@Data
@TableName(value = "ai_library_doc_segment")
public class AiLibraryDocSegmentEntity implements Serializable {
    private static final long serialVersionUID = -96461346310220411L;
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 文档ID
     */
    @TableField(value = "doc_id")
    private Long docId;

    /**
     * 向量片段ID
     */
    @TableField(value = "embedding_id")
    private String embeddingId;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * token
     */
    @TableField(value = "token_usage")
    private Integer tokenUsage;

    /**
     * 删除标记,true:已删除,false:正常
     */
    @TableLogic
    @TableField(value = "del_flag")
    private Boolean delFlag;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}

